package com.ygqh.baby.service;

import com.ygqh.baby.ao.InformType;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgInform;

import java.util.List;

/**
 * @author Ss
 */
public interface YgInformService {

    List<YgInform> find();

	int findCount();

	YgInform findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgInform ygInform);

	int update(YgInform ygInform);

	int saveOrUpdate(YgInform ygInform);

	ResultSet<YgInform> search(QueryInfo queryInfo, String q);

	int sendInform(Long userId, String content, InformType informType, String operator);

	void asyncSendInform(Long userId, String content, InformType informType, String operator);
}
